package cn.ljy.authority.service;

import cn.ljy.authority.model.SysDepartment;
import cn.ljy.authority.model.query.SysDepartmentQuery;

import java.util.List;

public interface SysDepartmentService extends BaseService<SysDepartment,SysDepartmentQuery>{

    /**
     * 用于提供给前端的树形
     * 说明：
     * 1.先从数据库找到树
     * 2.然后再从结果树中找到结果
     * @param sysDepartmentQuery 查询条件
     * @return
     */
    List<SysDepartment> findTree(SysDepartmentQuery sysDepartmentQuery);


}
